package com.hualude.roadsign.dto;

import com.hualude.roadsign.model.SignfaultEntity;

/**
 * Created by pjn on 2017/3/14.
 */
public class SignFaultReportDto {
    private Integer roadPoleId;
    private String longitude;
    private String latitude;
    private String province;
    private String city;
    private String area;
    private String address;
    private String roadName;
    private String startRoad;
    private String endRoad;
    private Integer signFaultId;
    private Integer signFaultLevel;
    private String signFaultPic;
    private Integer signFaultType;
    private String signFaultReason;
    private String signFaultTime;
    private Integer companyCheck;
    private Integer mainCheck;
    private String signFaultCheckBack;
    private Integer companyUserId;//企业负责人Id
    private Integer mainUserId;//主管Id
    private Integer roadSignId;//标牌标号
    private Integer signFaultPeopleId;//报告人
    private Integer orgType;
    private Integer orgId;//养护公司id
    private String signFaultDescription;
    private String signCheckTime;
    private Integer mainOrgId;//主管单位id
    private Double repairAmount;

    public SignFaultReportDto() {
    }

    public SignFaultReportDto(Integer roadPoleId, String longitude, String latitude, String province, String city, String area, String address, String roadName, String startRoad, String endRoad, Integer signFaultId, Integer signFaultLevel, String signFaultPic, Integer signFaultType, String signFaultReason, String signFaultTime, Integer companyCheck, Integer mainCheck, String signFaultCheckBack, Integer companyUserId, Integer mainUserId, Integer roadSignId, Integer signFaultPeopleId, Integer orgType, Integer orgId, String signFaultDescription, String signCheckTime,Integer mainOrgId) {
        this.roadPoleId = roadPoleId;
        this.longitude = longitude;
        this.latitude = latitude;
        this.province = province;
        this.city = city;
        this.area = area;
        this.address = address;
        this.roadName = roadName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
        this.signFaultId = signFaultId;
        this.signFaultLevel = signFaultLevel;
        this.signFaultPic = signFaultPic;
        this.signFaultType = signFaultType;
        this.signFaultReason = signFaultReason;
        this.signFaultTime = signFaultTime;
        this.companyCheck = companyCheck;
        this.mainCheck = mainCheck;
        this.signFaultCheckBack = signFaultCheckBack;
        this.companyUserId = companyUserId;
        this.mainUserId = mainUserId;
        this.roadSignId = roadSignId;
        this.signFaultPeopleId = signFaultPeopleId;
        this.orgType = orgType;
        this.orgId = orgId;
        this.signFaultDescription = signFaultDescription;
        this.signCheckTime = signCheckTime;
        this.mainOrgId = mainOrgId;
    }

    public SignFaultReportDto(Integer roadSignId, String province, String city, String area, String roadName, String startRoad, String endRoad, String longitude, String latitude, String signFaultPic, Integer signFaultType, String signFaultReason, Integer signFaultLevel, String signFaultTime, Integer mainCheck, Integer companyCheck) {
        this.roadSignId = roadSignId;
        this.province = province;
        this.city = city;
        this.area = area;
        this.roadName = roadName;
        this.startRoad = startRoad;
        this.endRoad = endRoad;
        this.longitude = longitude;
        this.latitude = latitude;
        this.signFaultPic = signFaultPic;
        this.signFaultType = signFaultType;
        this.signFaultReason = signFaultReason;
        this.signFaultLevel = signFaultLevel;
        this.signFaultTime = signFaultTime;
        this.mainCheck = mainCheck;
        this.companyCheck = companyCheck;
    }

    public Integer getRoadPoleId() {
        return roadPoleId;
    }

    public void setRoadPoleId(Integer roadPoleId) {
        this.roadPoleId = roadPoleId;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public String getStartRoad() {
        return startRoad;
    }

    public void setStartRoad(String startRoad) {
        this.startRoad = startRoad;
    }

    public String getEndRoad() {
        return endRoad;
    }

    public void setEndRoad(String endRoad) {
        this.endRoad = endRoad;
    }

    public Integer getSignFaultId() {
        return signFaultId;
    }

    public void setSignFaultId(Integer signFaultId) {
        this.signFaultId = signFaultId;
    }

    public Integer getSignFaultLevel() {
        return signFaultLevel;
    }

    public void setSignFaultLevel(Integer signFaultLevel) {
        this.signFaultLevel = signFaultLevel;
    }

    public String getSignFaultPic() {
        return signFaultPic;
    }

    public void setSignFaultPic(String signFaultPic) {
        this.signFaultPic = signFaultPic;
    }

    public Integer getSignFaultType() {
        return signFaultType;
    }

    public void setSignFaultType(Integer signFaultType) {
        this.signFaultType = signFaultType;
    }

    public String getSignFaultReason() {
        return signFaultReason;
    }

    public void setSignFaultReason(String signFaultReason) {
        this.signFaultReason = signFaultReason;
    }

    public String getSignFaultTime() {
        return signFaultTime;
    }

    public void setSignFaultTime(String signFaultTime) {
        this.signFaultTime = signFaultTime;
    }

    public Integer getCompanyCheck() {
        return companyCheck;
    }

    public void setCompanyCheck(Integer companyCheck) {
        this.companyCheck = companyCheck;
    }

    public Integer getMainCheck() {
        return mainCheck;
    }

    public void setMainCheck(Integer mainCheck) {
        this.mainCheck = mainCheck;
    }

    public String getSignFaultCheckBack() {
        return signFaultCheckBack;
    }

    public void setSignFaultCheckBack(String signFaultCheckBack) {
        this.signFaultCheckBack = signFaultCheckBack;
    }

    public Integer getCompanyUserId() {
        return companyUserId;
    }

    public void setCompanyUserId(Integer companyUserId) {
        this.companyUserId = companyUserId;
    }

    public Integer getMainUserId() {
        return mainUserId;
    }

    public void setMainUserId(Integer mainUserId) {
        this.mainUserId = mainUserId;
    }

    public Integer getRoadSignId() {
        return roadSignId;
    }

    public void setRoadSignId(Integer roadSignId) {
        this.roadSignId = roadSignId;
    }

    public Integer getSignFaultPeopleId() {
        return signFaultPeopleId;
    }

    public void setSignFaultPeopleId(Integer signFaultPeopleId) {
        this.signFaultPeopleId = signFaultPeopleId;
    }

    public Integer getOrgType() {
        return orgType;
    }

    public void setOrgType(Integer orgType) {
        this.orgType = orgType;
    }

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

    public String getSignFaultDescription() {
        return signFaultDescription;
    }

    public void setSignFaultDescription(String signFaultDescription) {
        this.signFaultDescription = signFaultDescription;
    }

    public String getSignCheckTime() {
        return signCheckTime;
    }

    public void setSignCheckTime(String signCheckTime) {
        this.signCheckTime = signCheckTime;
    }

    public Integer getMainOrgId() {
        return mainOrgId;
    }

    public void setMainOrgId(Integer mainOrgId) {
        this.mainOrgId = mainOrgId;
    }

    public Double getRepairAmount() {
        return repairAmount;
    }

    public void setRepairAmount(Double repairAmount) {
        this.repairAmount = repairAmount;
    }

    public SignfaultEntity toBean() {
        SignfaultEntity signfaultBean = new SignfaultEntity();
        signfaultBean.setSignFaultReason(signFaultReason);
        signfaultBean.setSignFaultType(signFaultType);
        signfaultBean.setSignFaultPic(signFaultPic);
        signfaultBean.setSignFaultLevel(signFaultLevel);
        signfaultBean.setOrgId(orgId);
        signfaultBean.setCompanyCheck(0);
        signfaultBean.setMainOrgId(mainOrgId);
        signfaultBean.setMainCheck(0);
        signfaultBean.setRoadSignId(roadSignId);
        signfaultBean.setSignFaultPeopleId(signFaultPeopleId);
        signfaultBean.setSignFaultTime(signFaultTime);
        signfaultBean.setRepairAmount(repairAmount);
        return signfaultBean;
    }
}
